import low from 'lowdb';
import LocalStorage from 'lowdb/adapters/LocalStorage';
import Setting from '@/setting';

const adapter = new LocalStorage(`loan-assist-${Setting.appID}`);
const db = low(adapter);

db
  .defaults({
    sys: {},
    database: {}
  })
  .write();

export default db;
